{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
            <script type="text/javascript">
                var primary_menu = "menu_1";
                var sub_menu = "menu_1_2";
            </script>
            <div class="col-md-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>一、产品信息表（每种化学产品填写一张表）</h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                            <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                        </div>
                        <div class="stay_right">
                            {% if status != 'finish' %}
                               <a href="/chemicals/productEdit/{{ p.id }}" class="btn btn-info">修改</a>
                            {% endif %}
                        </div>
                    </div>
                    <div class="panel-body with-table">

                    <form>
                    <table class="input_in table-detail">
                        <tr>
                            <th width="230">产品名称</th>
                            <td>{{ p.name }}</td>
                            <th width="200">产品编号</th>
                            <td>{{ p.sid }}</td>
                        </tr>
                        <tr>
                            <th>产品类别名称</th>
                            <td>{{ p.category }}</td>
                            <th>产品分类代码</th>
                            <td>{{ p.category_code }}</td>
                        </tr>
                        <tr>
                            <th>其他名称</th>
                            <td>{{ p.other_name }}</td>
                            <th>化学文摘号（识别码）</th>
                            <td>{{ p.cas }}</td>
                        </tr>
                        <tr>
                            
                            <th>产品物理状态</th>
                            <td>{{ p.physical_form }}</td>
                            <th>危害特性</th>
                            <td>
                                {{ p.hazard_pro }}
                            </td>
                        </tr>
                        

                        <tr>
                            <th>历史最大产量（t/a）</th>
                            <td>{{ p.his_max_amount }}</td>
                            <th>产量（t/a）</th>
                            <td>{{ p.year_amount }}</td>
                        </tr>
                        <tr>
                            <th>国内销售量（t/a）</th>
                            <td>{{ p.domestic_sales_amount }}</td>
                            <th>出口量（t/a）</th>
                            <td>{{ p.exports_amount }}</td>
                        </tr>
                        <tr>
                            <th>调查年底（12月31日）储存量（吨）</th>
                            <td>{{ p.storage_amount }}</td>
                        
                            <th>实际产量（t/a）</th>
                            <td>{{ p.actual_amount }}</td>
                        </tr>
                        <tr>
                            <th>是否属于危险化学品</th>
                            <td>{{ p.is_dangerous }}
                            </td>
                            <th>预期用途代码（可多填）</th>
                            <td>{{ p.use_code }}</td>
                        </tr>
                        <tr>
                            <th>是否为重点环境管理危险品</th>
                            <td>
                                {{ p.is_emphasis }}
                            </td>
                            <th>是否属于安监重点监管危化品</th>
                            <td>
                                {{ p.is_re_danger }}
                            </td>
                        </tr>
                        <tr>
                            <th>贮存方式</th>
                            <td colspan="3">{{ p.storage_mode }}</td>
                        </tr>
                        <tr>
                            <th rowspan=2>系统内最大存量（t）</th>
                            <td>生产区</td>
                            <td colspan="2">{{ p.max_sto_amount }}</td>
                        </tr>
                        <tr>
                            <td>贮存区</td>
                            <td colspan="2">{{ p.max_input_amount }}</td>
                        </tr>
                        <tr>
                            <th>输出去向</th>
                            <td>{{ p.out_where }}</td>
                            <th>输出方式</th>
                            <td>{{ p.out_mode }}</td>
                        </tr>
                    </table>
                    </form>
                    </div>
                </div>
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <div class="panel-title"><h3>二、产品中化学物质信息</h3></div>
                        <div class="panel-options">
                            <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                            <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                        </div>
                        <!-- <div class="stay_right">
                            <a href="/product/infoEdit/" class="btn btn-info">修改</a>
                        </div> -->
                    </div>
                    <div class="panel-body with-table">
                        <form>
                            {% for i in iis %}
                                <table class="input_in table-detail">
                                    <tr>
                                        <th rowspan=4 width="100">成分{{ forloop.counter }}</th>
                                        <th>化学名称</th>
                                        <td width="250">{{ i.e_name }}</td>
                                        <th>分子式</th>
                                        <td width="250">{{ i.e_molecular_formula }}</td>
                                        {% if status != 'finish' %}
                                            <td rowspan="4" width="60"><a href="/chemicals/materialElEdit/{{ i.id }}" class="btn btn-info">修改</a></td>
                                        {% else %}
                                            <td rowspan="4" width="60" ></td>
                                        {% endif %}
                                    </tr>
                                    <tr>
                                        <th>化学文摘号（识别码）/临时编码</th>
                                        <td>{{ i.e_code }}</td>
                                        <th>结构式(上传图片)</th>
                                        <td>{{ i.e_struct }}</td>
                                    </tr>
                                    <tr>
                                        <th>其他名称</th>
                                        <td>{{ i.e_other_name }}</td>
                                        <th>是否属于危险化学品</th>
                                        <td>{{ i.e_is_dangerous }}</td>
                                    </tr>
                                    <tr>
                                        
                                        <th>含量（%）</th>
                                        <td>{{ i.e_amount }}</td>
                                        <th>成分折纯量（t/a）</th>
                                        <td>{{ i.e_shechun }}</td>
                                    </tr>
                                </table>
                            {% endfor %}
                        </form>
                    </div>
                </div>
            </div>

{% endblock %}

{% block js %}
{% endblock %}